<%@ page language="java" contentType="text/html; charset=UTF-8" trimDirectiveWhitespaces="true"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include.inc.jsp"%>


<dwz:paginationForm action="${contextPath}/role/list" page="${page}" onsubmit="return navTabSearch(this)">
	<input type="hidden" name=search_LIKE_name value="${param.search_LIKE_name}"/>
</dwz:paginationForm>
<form method="post" action="${contextPath}/user/list" onsubmit="return navTabSearch(this)">
	<div class="pageHeader">
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>角色名：</label>
					<input type="text" name=search_LIKE_name value="${param.search_LIKE_name }"/>
				</li>
				
			</ul>
			<div class="subBar">
				<ul>						
					<li><div class="button"><div class="buttonContent"><button type="submit">搜索</button></div></div></li>
				</ul>
			</div>
		</div>
	</div>
</form>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<shiro:hasPermission name="Role:view">
			<li><a iconClass="magnifier" rel="Role_navTab" target="navTab"  href="${contextPath}/role/view/{slt_uid}"><span>查看角色</span></a></li>
			</shiro:hasPermission>
			<shiro:hasPermission name="Role:create">
			<li><a iconClass="shield_add"  rel="Role_navTab" target="navTab"  href="${contextPath}/role/create"><span>添加角色</span></a></li>
			</shiro:hasPermission>
			<shiro:hasPermission name="Role:edit">
			<li><a iconClass="shield_go" rel="Role_navTab" target="navTab"  href="${contextPath}/role/edit/{slt_uid}"><span>编辑角色</span></a></li>
			</shiro:hasPermission>
			<shiro:hasPermission name="Role:delete">
			<li><a iconClass="shield_delete" class="delete" target="selectedTodo" rel="ids"  title="确认要删除角色吗?"   href="${contextPath }/role/delete"><span>删除角色</span></a></li>
			</shiro:hasPermission>
			<shiro:hasPermission name="Role:assign">
			<li><a iconClass="database_go"  class="delete"    href="#"><span>分配数据权限</span></a></li>
			</shiro:hasPermission>
		</ul>
	</div>
	<table class="table" layoutH="135" width="100%" >
		<thead>
			<tr>
				<th width="30"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="250">角色名称</th>
				<th>描述</th>
				
			</tr>
		</thead>
		<tbody>
			<c:forEach var="item" items="${listRole}">
				<tr target="slt_uid" rel="${item.id}">
					<td><input name="ids" value="${item.id}" type="checkbox"></td>
					<td>
					<a  rel="Role_navTab" target="navTab"  href="${contextPath}/role/view/${item.id}">${item.name}</a>
					</td>
					<td>${item.description}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	
	<!-- 分页 -->
	<dwz:pagination page="${page}" />

	
</div>